package com.vpx.server.service.system;

import com.vpx.server.bean.order.system.AttachDownLoadOrder;
import com.vpx.server.bean.order.system.AttachIdsOrder;
import com.vpx.server.bean.order.system.AttachUploadOrder;
import com.vpx.server.bean.result.system.AttachUploadResult;
import com.vpx.server.bean.result.system.SysAttachListResult;
import com.vpx.server.framework.base.ResultMsg;

/**
 * @author denglw
 * @title: vpx
 * @module system
 * @description: 附件管理
 * @date 2021/9/11 17:50
 */
public interface SysAttachService {

    /**
     * 上传附件
     *
     * @param order
     * @return
     */
    ResultMsg<AttachUploadResult> upload(AttachUploadOrder order);

    /**
     * 下载附件
     *
     * @param order
     * @return
     */
    ResultMsg<AttachUploadResult> download(AttachDownLoadOrder order);

    /**
     * 附件列表查询
     *
     * @param order
     * @return
     */
    ResultMsg<SysAttachListResult> findAttachList(AttachIdsOrder order);

}
